﻿namespace SNSGame.Util
{
    /// <summary>
    /// Web方式时调用，用于输出一些没有办法直接输出到页面上的信息
    /// </summary>
    public class WebTrace
    {
        /// <summary>
        /// 将信息输出到Http头部
        /// </summary>
        /// <param name="name"></param>
        /// <param name="value"></param>
        public static void Debug(string name,string value)
        {
            var httpContext = System.Web.HttpContext.Current;
            if(httpContext == null) return;
            httpContext.Response.AddHeader(name,value);
        }
    }
}